package com.sc.study.foundation.domain;

import com.sc.study.clazz.domain.ScClazz;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sc.common.annotation.Excel;
import com.sc.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 年级对象 sc_grade
 * 
 * @author sc
 * @date 2022-02-27
 */
public class ScGrade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String gradename;

    /** 班级列表 */
    private List<ScClazz> scClazzList;

    /** 科目列表 */
    private List<ScSubject> scSubjectList;





    public List<ScSubject> getScSubjectList() {
        return scSubjectList;
    }

    public void setScSubjectList(List<ScSubject> scSubjectList) {
        this.scSubjectList = scSubjectList;
    }

    public List<ScClazz> getScClazzList() {
        return scClazzList;
    }

    public void setScClazzList(List<ScClazz> scClazzList) {
        this.scClazzList = scClazzList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGradename(String gradename) 
    {
        this.gradename = gradename;
    }

    public String getGradename() 
    {
        return gradename;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gradename", getGradename())
            .toString();
    }


}
